package com.bkgy.modular.rollParameter.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bkgy.modular.rollParameter.entity.RollParameter;
import com.bkgy.modular.rollParameter.mapper.RollParameterMapper;
import com.bkgy.modular.rollParameter.service.RollParameterService;
import com.bkgy.sys.common.entity.ResultData;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ZhuHongKai
 * @version 1.0
 * @ClassName RollParameterServiceImpl
 * @date 2022/12/29 14:27
 */
@Service
public class RollParameterServiceImpl extends ServiceImpl<RollParameterMapper, RollParameter> implements RollParameterService {
    @Resource
    RollParameterMapper rollParameterMapper;

    @Override
    public ResultData rollParameterMethods(JSONObject jsonObject) {
        JSONObject condition = jsonObject.getJSONObject("condition");
        List<RollParameter> list = rollParameterMapper.findByData(condition);
        return ResultData.ResultDataFaultSelf("操作成功",list);
    }
}
